/*
 * ========================================================
 * Copyright(c) 2014 杭州偶尔科技-版权所有
 * ========================================================
 * 本软件由杭州偶尔科技所有, 未经书面许可, 任何单位和个人不得以
 * 任何形式复制代码的部分或全部, 并以任何形式传播。
 * 公司网址
 * 
 * 			http://www.kkkd.com/
 * 
 * ========================================================
 */
package com.simon.mengkou.system.constant;


import com.simon.mengkou.BuildConfig;

/**
 * @作者 Zhenshui.Xia
 * @日期 2014年8月6日
 * @描述 项目常量类定义
 */
public class CstOuer {
    //项目名
    public static String PROJECT 					= "moekou";
    //项目是否处于调试模式
    public static boolean DEBUG 					= BuildConfig.DEBUG;
    //项目是否使用cookie功能
    public static boolean COOKIE 					= true;
	//当前项目包名
	public static final String PACKAGE_NAME         = "com.simon.mengkou";
	// CHANNEL META
    public static final String CHANNEL_META         = "UMENG_CHANNEL";

    // 数据库名
    public static final String DB_NAME              = PROJECT + ".db";
    // 数据库版本
    public static final int DB_VERSION              = 3;

    //api现网地址
    public static final String API_ONLINE_URL           = "http://www.yiqihitao.com/api";
    //api预发地址
    public static final String API_PREONLINE_URL        = "";
    //api测试地址
    public static final String API_DEBUG_URL            = "http://www.yiqihitao.com/api";//http://www.yiqihitao.com/api";//http://121.40.227.114:2046/mengk-rest-api-1.0";
    //H5现网地址
    public static final String H5_ONLINE_URL            = "";
    //H5预发地址
    public static final String H5_PREONLINE_URL         = "";
    //H5测试地址
    public static final String H5_DEBUG_URL             = "";
    //官网地址
    public static final String OFFICAL_URL              = "http://www.moekou.com";
    //api地址
    public static String API_URL                        = API_DEBUG_URL;
    //H5地址
    public static String H5_URL                         = H5_DEBUG_URL;


    /**
     * 常用KEY定义
     * 
     * @author zhenshui.xia
     */
    public static class KEY {
    	public final static String INDEX 				= "index";
    	public final static String TITLE 				= "title";
    	public final static String URL 				    = "url";
        public final static String NIUDAN 				= "niudan";
        public final static String FRAGMENT 			= "fragment";
        public final static String USER_ID 			    = "userId";
        public final static String EXIT 			    = "exit";
        public final static String ID 			        = "id";

        public final static String PHONE                = "phone";
        public final static String TYPE                 = "type";
        public final static String MAP                  = "map";
        public final static String CODE                 = "code";
        public final static String FOLLOW               = "follow";
        public final static String LIKE                 = "like";
        public final static String ADDRESS              = "address";
        public final static String TAGS                 = "tags";
        public final static String ORDER                = "order";
        public final static String SELECTALL            = "selectAll";
        public final static String GROUPID              = "groupId";
        public final static String SHOP                 = "shop";
        public final static String TOPIC                = "topic";
        public final static String TOPIC_ID             = "topicId";
        public final static String STATUS               = "status";
        public final static String COUPON               = "coupon";
        public final static String VALUE                = "value";
        public final static String PATH                 = "path";
        public final static String CART_NUM             = "cartNum";
    }
	

    /**
     * 网络请求返回数据状态码
     * @author zhenshui.xia
     *
     */
    public static class DATA_STATUS {
        //请求成功
        public static final int OK       = 200;
        //未授权
        public static final int UNAUTH   = 401;
    }

    /**
     * 网络请求返回数据key定义
     * @author zhenshui.xia
     *
     */
    public static class DATA_KEY {
        // 错误码
        public static final String STATUS    = "errorCode";
        // 错误消息s
        public static final String DETAILS   = "error";
        // 更多信息
        public static final String MSG       = "moreInfo";
        // 响应数据
        public static final String DATA      = "data";
    }
    
    
    /**
     * 分页相关定义
     * @author zhenshui.xia
     *
     */
    public static class PAGE {
    	//默认分页size， -1表示有服务端决定
    	public static final int DEFAULT_SIZE 	= 20;
        //默认maxid
        public static final String DEFAULT_MAXID 	= String.valueOf(Integer.MAX_VALUE);
        //默认minid
        public static final String DEFAULT_MINID 	= "0";
    	
    	//默认的sortID， -1表示从最新开始获取
    	public static final String DEFAULT_ID 	= "-1";
    }

    
    
    /**
     * 服务广播
     * 
     * @author zhenshui.xia
     */
    public static class SERVICE_ACTION {
        //系统服务
        public static final String OUER_ACTION = PACKAGE_NAME
                + ".SERVICE_ACTION.OUER_ACTION";
    }
    
    /**
     * 广播ACTIONS集合
     * 
     * @author zhenshui.xia
     */
    public static class BROADCAST_ACTION {
    	// 需要登录广播
        public static final String NEED_LOGIN_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.NEED_LOGIN_ACTION";
    	// 登录广播
        public static final String LOGINED_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.LOGINED_ACTION";
        // 未登录广播
        public static final String UNLOGINED_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.UNLOGIN_ACTION";
        // 用户信息修改广播
        public static final String USER_MODIFY_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.USER_MODIFY_ACTION";
        // 地址信息修改广播
        public static final String ADDRESS_CHANGE_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.USER_MODIFY_ACTION";
        // 接受推送消息广播
        public static final String MESSAGE_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.MESSAGE_ACTION";
        // 扭蛋寄送广播
        public static final String NIUDAN_SEND_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.NIUDAN_SEND_ACTION";
        // 扭蛋广播
        public static final String NIUDAN_PLAY_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.NIUDAN_PLAY_ACTION";
        // 主界面tab切换广播
        public static final String MAINTAB_CHANGED_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.MAINTAB_CHANGED_ACTION";
        //忘记密码修改广播
        public static final String FORGET_PWD_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.FORGET_PWD_ACTION";
        //关注or取消关注广播
        public static final String FOLLOW_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.FOLLOW_ACTION";
        //晒单喜欢广播
        public static final String SHARE_ORDER_LIKE_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.SHARE_ORDER_LIKE_ACTION";
        //晒单发布广播
        public static final String SHARE_ORDER_ADD_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.SHARE_ORDER_ADD_ACTION";
        //晒单评论广播
        public static final String SHARE_ORDER_COMMENT_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.SHARE_ORDER_COMMENT_ACTION";
        //购物车商品全选广播
        public static final String CART_SELECT_ALL_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.CART_SELECT_ALL_ACTION";
        //订单提交广播
        public static final String ORDER_SUBMIT_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.ORDER_SUBMIT_ACTION";
        //订单取消广播
        public static final String ORDER_CANCEL_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.ORDER_CANCEL_ACTION";
        //订单支付成功广播
        public static final String ORDER_PAY_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.ORDER_PAY_ACTION";
        //确认收货广播
        public static final String ORDER_CONFIRM_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.ORDER_CONFIRM_ACTION";
        //拼团取消广播
        public static final String GROUP_CANCEL_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.GROUP_CANCEL_ACTION";
        //拼团完成广播
        public static final String GROUP_FINISH_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.GROUP_FINISH_ACTION";
        //微信支付结果广播
        public static final String WEIXIN_PAY_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.WEIXIN_PAY_ACTION";
        //话题关注广播
        public static final String TOPIC_FOLLOW_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.TOPIC_FOLLOW_ACTION";
        //删除购物车商品广播
        public static final String DELETE_CART_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.DELETE_CART_ACTION";
        //删除购物车商品广播
        public static final String EDIT_CART_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.EDIT_CART_ACTION";
        //专题喜欢广播
        public static final String TOPIC_FAVER_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.TOPIC_FAVER_ACTION";
        //专题评论广播
        public static final String TOPIC_ADD_COMMENT_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.TOPIC_ADD_COMMENT_ACTION";
        //订单优惠券兑换广播
        public static final String ORDER_COUPON_PRESUBMIT_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.ORDER_COUPON_PRESUBMIT_ACTION";
        //视频收藏广播
        public static final String VIDEO_FOLLOW_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.VIDEO_FOLLOW_ACTION";
        //图片标签修改广播
        public static final String IAMGE_TAG_EDIT_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.IMAGE_TAG_EDIT_ACTION";
        //用户签到广播
        public static final String USER_SIGN_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.USER_SIGN_ACTION";
        //添加购物车广播
        public static final String ADD_CART_ACTION = PACKAGE_NAME
                + ".BROADCAST_ACTION.ADD_CART_ACTION";
    }


    /**
     * 腾讯相关常量
     * @author zhenshui.xia
     *
     */
    public static class TENCENT {
        //腾讯app ID
        public static final String TENCENT_APP_ID = "1104973578";
        //腾讯APP KEY
        public static final String TENCENT_APP_KEY = "5fiYkcdDYRD2PHsi";
    }

    /**
     * 微信相关常量
     * @author zhenshui.xia
     *
     */
    public static class WECHAT {
        //微信app ID
        public static final String WECHAT_APP_ID = "wx105a39c97aa9011e";
        //微信APP KEY
        public static final String WECHAT_APP_KEY = "c2186803a329ea23df19792ed771bc8a";

        //商户PID
        public static final String PARTNER = "1300597301";
        //秘钥
        public static final String SECRET = "2F4CB1038EFD2C17B314F48B65430351";
    }

    /**
     * 新浪相关常量
     *
     * @author zhenshui.xia
     *
     */
    public static class SINA {
        // 新浪微博app key
        public static final String SINAWEIBO_APP_KEY = "1579226295";
        // 新浪微博app key
        public static final String SINAWEIBO_APP_SECRET = "ecf0917e818fcab5b50a78f4fbbe7624";
        // 新浪微博授权回调地址
        public static final String SINAWEIBO_REDIRECT_URL = "http://www.moekou.com";
    }


    /**
     * 小米推送相关常量
     * @author zhenshui.xia
     *
     */
    public static class MIPUSH {
        //小米推送app id
        public static final String MIPUSH_APP_ID = "2882303761517423694";
        //小米推送app key
        public static final String MIPUSH_APP_KEY = "5461742328694";
    }


    /**
     * 支付宝相关常量
     * @author zhenshui.xia
     *
     */
    public static class ALIPAY {
        //商户PID
        public static final String PARTNER = "2088121417937324";
        //商户收款账号
        public static final String SELLER = "developer@moekou.com";
        //商户私钥，pkcs8格式
        public static final String RSA_PRIVATE = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJ" +
                "dAgEAAoGBAJ2OdoTtc1irSd1OhxwC82k0DEx64k+f6GRzgeEkLNx9ETUA2H36KHYjLKVz8J" +
                "w0dVTk2h6kEGXtd4GoySptTzQgUoYNILqmwaxDaePBuYl2Qzj6WKkgOgrM34+V0LoiNe1yHAK" +
                "OXFxip842eMsxiIAQa+9kfWnZyaue01NB/IGZAgMBAAECgYA1iVwSbRD9ty5hKbbVONd3Dv2C21" +
                "qdDcwMngcq9nzb6w92wDPQErm+8tLP4aaHnXelAiJvuPXtfJRYFX9NkFkR588GYhghoNH5gRkb2m" +
                "rbuu1QwFxnygFMljkSGgAYm1t+JJjpiCpTtRTvMRQL2sgq9ZsKpPR+42YMnF2jSUXI1QJBAMsg/OJ" +
                "mMfI9/P+W0aoONim0SjQbwVty/rH4Xu85qYhCtpC66Q+4s/t1pNC2zlgjwsC/FAPzYxMovR0hBTMx" +
                "ejMCQQDGkN5Hy61sXBzC+PYd+9ccxQ8DJwEOATiB4uve3BoF0GNJolNFjYHC0lReX+3lJ0kx2uf/4" +
                "X/0UEzNSj+5OqEDAkEAk+fpO1D+fUz1s4W2FQVUGvnULi0nldcd7ajUN4zdDQLGvIvcuD3dj/QRlo" +
                "gFp9giLwbzJA1Mzt6TFWq9xpD4UQJAboEAswPup3c7qmXS0iztMd2Y1TBHrfuP7vjSO1xSPxoRp1D" +
                "m9rYhmMJkoYDRa83JNi2VHxnnk5d8pmLDw9mU8QJBAIrXPovLLpbtOOB/LonKXDuh9pHT6i2UnP/ZT" +
                "PeWlc3xk7y3zdD1ykK/9OIBpRDuwznTT7RPPGyRNbcnEDPc1jY=";
    }

    /**
     * 阿里巴巴常量
     * @author zhenshui.xia
     *
     */
    public static class ALIBABA {
        //1-2件不包邮，支付邮费的商品ID
        public static final String PRODUCT_ID_EQUALLESS_TWO = "526425043412";
        //3件及以上包邮，支付邮费差价的商品ID
        public static final String PRODUCT_ID_EQUALMORE_THREE = "526466033695";

    }


    /**
     * SCHEMA定义
     *
     * @author bluestome
     */
    public static class SCHEMA {
        // WK95的SCHEMA
        public static final String MOEKOU = "moekou";
    }

    /**
     * SCHEMA 主机名定义
     *
     * @author bluestome
     */
    public static class SCHEMA_HOST {
        // MANGA主机名
        public static final String MOEKOU_HOST = "www.moekou.com";
    }

    /**
     * SCHEMA 定义的路径
     *
     * @author bluestome
     */
    public static class SCHEMA_HOST_PATH {
        // 品牌详情路径
        public static final String BRAND = "/brand";
        // 商品详情路径
        public static final String PRODUCT = "/product";
    }
}
